VisibleCols Property

       

Returns a value indicating the number of visible columns in the DataGrid control. Not available at design time and read-only at run time.

Syntax

object.VisibleCols

The VisibleCols property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Remarks

The VisibleCols property is an integer ranging from 0 to the total number of columns available, as determined by the Count property of the Columns collection.

This property returns the number of visible columns in the current split. The value returned includes both fully and partially displayed columns.

Use the Split property to determine the index of the current split.